import requests


host = 'https://www.txt80.com'
url = host
header = {}
param = {}

# requests 请求
requests.request("GET", url=url, headers=header, params=param)
requests.get(url=url, headers=header, params=param)
requests.post

# 返回结果
res = requests.request("GET", url=url, headers=header, params=param)
import re
#          <a href="/yanqing/2020/11/txt13431.html" title="天官赐福TXT下载" target="_blank">
# <a href="/xuanhuan/2018/09/txt9203.html" title="元尊TXT下载" target="_blank"><font color="#524236">元尊</font></a></p></li>

pattern = '<a href="/wenxue/2017/07/txt6593.html" title="《红楼梦》脂砚斋批本txt下载" target="_blank">'

pattern = '<a href="(.*?)" title="(.*?)" target="_blank">'
pattern = r'<a href="([.\S]*?)" title="(.*?)" target="_blank">'

pattern = r'<a href="([.\S]*?)" (title="[.\S]*?" ){1}target="_blank">'
text = res.content.decode()
find = re.findall(pattern, text, re.S)
print(find)

# 状态码   200   404
res.status_code
res.json
res.content
res.text
